#!/bin/bash

rm  -rf ./dist
mkdir -p ./dist/road-detection

pyarmor gen -r -O dist/road-detection ./main.py

pyarmor gen -r -O dist/road-detection ./app.py

pyarmor gen -r -O dist/road-detection ./utils

cp -r ./templates dist/road-detection/templates
cp -r ./configs dist/road-detection/configs 
#cp ./.env dist/road-detection/.env
cp ./requirements.txt dist/road-detection/requirements.txt
cp ./s.sh dist/road-detection/s.sh
cp ./e.sh dist/road-detection/e.sh

cp -rf ./dist/road-detection /data/road-detection

tar -cf ./dist/road-detection.tar ./dist/road-detection
scp -P 60022 ./dist/road-detection.tar root@223.109.220.187:/data/